#include <stdio.h>
#include <stdlib.h>
int main()
{
    int i,j;
    int otherbuf[10]={};
    int buf[30]={[0 ... 15]=20,[16 ... 29]=30};
    for ( i = 0,j = 0;i < 30 && j < 10; i+=3,j++)
    {
        otherbuf[j] = buf[i] + buf[i+1] + buf[i+2];
        printf("第%d组的和为%d\n",j,otherbuf[j]);
    }
    
    
    return 0;
}